import 'package:fish_redux/fish_redux.dart';
import 'package:school_safe_teacher/Home/entity/news_entity.dart';
import 'package:school_safe_teacher/constans/constants.dart';

class NewsDetailState implements Cloneable<NewsDetailState> {
  NewsEntity newsEntity;

  @override
  NewsDetailState clone() {
    return NewsDetailState()..newsEntity = newsEntity;
  }
}

NewsDetailState initState(Map<String, dynamic> args) {
  return NewsDetailState()..newsEntity = args[Constants.NEWS_DETAIL_ENTITY];
}
